package com.blog.biz.impl;

import com.blog.biz.AccountBiz;
import com.blog.dao.AccountDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 * Author:  Wu Yujie
 * Email:  coffee377@dingtalk.com
 * Time:  2017/02/23 19:32
 */
@Service
public class AccountBizImpl implements AccountBiz {
    @Resource
    private AccountDao accountDao;

    @Override
    public void transfer(String out, String in, Double money) {
        accountDao.outMoney(out, money);
//        int i = 3 / 0;
        accountDao.inMoney(in, money);

    }


}
